local CommonOHOH = _G.CommonOHOH

local M = CommonOHOH.class.new(script, CommonOHOH.files.BaseComponent());

function M.new(self,...)
	return M(self,...);
end;

function M.ctor(self, parent)
	M.super.ctor(self, parent);
    
    self.Att=_G.ClientOHOH:GetPath_Loop("Touch.meatUi",self.parent:GetRoot())
    self.ui=_G.ClientOHOH:GetPath_Loop("BillboardGui", self.Att)
    self.lable=_G.ClientOHOH:GetPath_Loop("Ctrl.count", self.ui).Value

    local cfg=self.parent:GetCfg()
    for k,v in pairs(cfg.awake) do
        self.lable.Text= CommonOHOH.load.BigNumberHelper():ToString(v)
    end
   
    self.parent.FeedEvent:Connect(function()
        self:Hide()
    end)
end;

function M.dtor(self)
    self:Hide()
	M.super.dtor(self);
end

function M.Hide(self)
    self.ui.Enabled=false
end

function M.Show(self)
    self.ui.Enabled=true
end

function M.Update(self)

end

return M

